﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BW.MesProject.Equipment.Domain.Equipment
{
    /// <summary>
    /// 项目维护实体
    /// </summary>
    [SugarTable("ProjectMaintenance")]
    public class ProjectMaintenanceModel:BaseEntity
    {
        /// <summary>
        /// 项目维护编码
        /// </summary>
        [SugarColumn(ColumnName = "ProjectMaintenanceCode",Length =50)]
        public string ProjectMaintenanceCode { get; set; }

        /// <summary>
        /// 项目维护名称
        /// </summary>
        [SugarColumn(ColumnName = "ProjectMaintenanceName", Length = 50)]
        public string ProjectMaintenanceName { get; set; }

        /// <summary>
        /// 检验方式
        /// 1: 目视、 2: 擦拭、 3: 仪表测试
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public int CheckoutWay { get; set; }

        /// <summary>
        /// 值类型
        /// </summary>
        [SugarColumn(ColumnName = "ValueType", Length = 50)]
        public string ValueType { get; set; }

        /// <summary>
        /// 最小值
        /// </summary>
        [SugarColumn(ColumnName = "ProjectMaintenanceMinNum", Length = 10, IsNullable = true)]
        public int ProjectMaintenanceMinNum { get; set; }

        /// <summary>
        /// 最大值
        /// </summary>
        [SugarColumn(ColumnName = "ProjectMaintenanceMaxNum", Length = 10, IsNullable = true)]
        public int ProjectMaintenanceMaxNum { get; set; }

        /// <summary>
        /// 判定基准
        /// </summary>
        [SugarColumn(ColumnName = "Criterion", Length = 100, IsNullable = true)]
        public string Criterion { get; set; }

    }
}
